﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml.Linq;

namespace setfile
{
    public partial class group : Form
    {
        public group()
        {
            InitializeComponent();
        }

        private void group_Load(object sender, EventArgs e)
        {
            Loadxml();
            XDocument xd = XDocument.Load("config.xml");
             IEnumerable<XElement> allnodes = from target in xd.Descendants("param") select target;
             foreach (XElement item in allnodes)
             {
                
             }
             Console.WriteLine(allnodes);
        }
        public void Loadxml()
        {
            XDocument xd = XDocument.Load("config.xml");
            IEnumerable<XElement> xe = from temp in xd.Descendants("param") select temp;
            foreach (XElement item in xe)
            {
                Console.WriteLine(item.Value);
            }
        }
    }
}
